package cn.sfrog.system.domain.vo;

import cn.sfrog.common.annotation.Excel;
import cn.sfrog.common.constant.Constants;
import cn.sfrog.common.core.domain.BaseEntity;
import cn.sfrog.common.enums.StatusEnum;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;


@Data
public class SysUserImportTemplateExportVO extends BaseEntity {

    @Excel(name = "部门编号")
    private Long deptId;

    @Excel(name = "登录名称")
    private String userName;

    @Excel(name = "用户名称")
    private String nickName;

    @Excel(name = "用户邮箱")
    private String email;

    @Excel(name = "手机号码")
    private String phonenumber;

    @Excel(name = "角色(多个则以、分割)")
    private String roleNames;

    public SysUserImportTemplateExportVO(){

    }

    public static List<SysUserImportTemplateExportVO> genExampleData(){
        List<SysUserImportTemplateExportVO> vos = new ArrayList<>();
        SysUserImportTemplateExportVO vo = new SysUserImportTemplateExportVO();
        vo.setDeptId(Long.parseLong(Constants.EXAMPLE_SYS_USER_DEPT_ID));
        vo.setUserName(Constants.EXAMPLE_SYS_USERNAME);
        vo.setNickName(Constants.EXAMPLE_SYS_USER_NICKNAME);
        vo.setEmail(Constants.EXAMPLE_SYS_USER_EMAIL);
        vo.setPhonenumber(Constants.EXAMPLE_SYS_PHONE);
        vo.setRoleNames(Constants.EXAMPLE_SYS_USER_ROLE_NAMES);
        vos.add(vo);
        return vos;
    }
}
